using System;
using System.Collections.Generic;
using System.Text;

namespace Colman.Rpg.Messaging
{
    /// <summary>
    /// Represents a reply to either <see cref="BuyItemRequest"/>,
    /// <see cref="SellItemRequest"/> or <see cref="EquipItemRequest&lt;T&gt;"/>.
    /// </summary>
    [Serializable]
    public class ItemTransactionResponse : ResponseMessage
    {
        /// <summary>
        /// Creates a new instance of <see cref="ItemTransactionResponse" />.
        /// </summary>
        /// <param name="player">Represents the player after the transaction.</param>
        [System.Diagnostics.DebuggerStepThrough]
        public ItemTransactionResponse(Player player)
            : base(ResponseDestination.Requester)
        {
            this.player = player;
        }

        #region Player Player { get; } (player)
        private Player player;

        /// <summary>
        /// Gets the player after the transaction.
        /// </summary>
        [System.ComponentModel.Description("Indicates the player after the transaction.")]
        public Player Player
        {
            [System.Diagnostics.DebuggerStepThrough]
            get
            {
                return this.player;
            }
        }
        #endregion
    }
}
